package GameStates;

import GameFiles.StateBase;
import Gui.GameFrame;
import Main.Defines;

public class RunGame extends StateBase
{
	private static RunGame ref = null;

	public static RunGame getInstance()
	{
		if (ref == null)
			// it's ok, we can call this constructor
			ref = new RunGame();
		return ref;
	}
	/**
	 * Run the enter to the current players state
	 */
	public boolean Enter()
	{
		Defines.CP().getCurrentState().Enter();
		return true;
	}
	public boolean Execute()
	{
		Defines.PLM.Update();
		return true;
	}
	public boolean Exit()
	{
		GameFrame.getInstance().getContentPane().removeAll();
		return true;
	}
	public boolean Draw(GameFrame gf)
	{
		Defines.PLM.Draw(gf);
		return true;
	}
}
